package com.imooc.service;

import com.imooc.config.BusinessException;
import org.springframework.stereotype.Service;

/**
 * @author ：wangshuliang
 * @date ：Created in 2020/6/9 14:53
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class DemoService {

    public String demo(String in){
        return in;
    }


    public String testException(){
        throw  new BusinessException("测试异常");
    }

}
